import request from '@/utils/request'

// 获取员工列表
export function getEmployeeList(page,size) {
    return request({
        url: '/sys/user',
        method: 'get',
        params: { page,size }
    })
}

// 删除
/**
 * @description: 删除员工
 * @param {*} id 员工id
 * @return {*}
 */
export function delEmployee(id) {
    return request({
        method: 'delete',
        url: `/sys/user/${id}`
    })
}